#ifndef SCRIPTLOADER_H_INCLUDED
#define SCRIPTLOADER_H_INCLUDED

#include "tinyxml/tinyxml.h"
#include "ConfigElement.h"
#include "ConfigurationRootElement.h"






namespace OpenNano
{

    class OPENNANO_EXPORT ScriptLoader
    {
        private :
            TiXmlDocument * document;
            //TiXmlHandle * hRoot;
            //const std::string * filename;
            ConfigurationRootElement * _rootElement;
            log4cplus::Logger logger;

        public :

            ScriptLoader();
            ~ScriptLoader();
            bool loadConfigFile(const std::string& filename);
            const ConfigurationMap & getConfigurations() const;

    };

}

#endif // SCRIPTLOADER_H_INCLUDED
